package com.bss.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.andy.basics.Service;
import com.bss.model.Room;
import com.bss.service.RoomService;

@Controller
@Scope("request")
public class RoomController extends com.andy.basics.Controller<Room> {

	@Autowired
	private RoomService roomService;

	@Override
	public Service<Room> getService() {
		return roomService;
	}

	public void setRoomService(RoomService roomService) {
		this.roomService = roomService;
	}

	@Override
	public Room create() {
		return new Room();
	}
}
